package com.xjrsoft.module.erpModel.caseErpCustomer.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.xjrsoft.common.model.base.AuditEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;

/**
 * <p>
 * 客户信息【case_erp_customer】
 * </p>
 *
 * @author hnyyzy
 * @since 2023-07-11
 */
@TableName("case_erp_customer")
@ApiModel(value = "CaseErpCustomer对象", description = "客户信息【case_erp_customer】")
@EqualsAndHashCode(callSuper = false)
@Data
public class CaseErpCustomer extends AuditEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("客户名称")
    private String name;

    @ApiModelProperty("客户类型,数据字典id")
    private Long typeId;

    @ApiModelProperty("公司性质,数据字典id")
    private Long natureId;

    @ApiModelProperty("所在行业")
    private String industry;

    @ApiModelProperty("来源,数据字典id")
    private Long sourceId;

    @ApiModelProperty("规模,数据字典id")
    private Long scaleId;

    @ApiModelProperty("地址")
    private String address;

    @ApiModelProperty("附件")
    private String filePath;

    @ApiModelProperty("默认联系人姓名")
    @TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String defaultName;

    @ApiModelProperty("默认联系人电话")
    @TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String defaultPhone;

    @ApiModelProperty("默认联系人职位")
    @TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String defaultPost;

    @ApiModelProperty("默认联系人部门")
    @TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String defaultDep;

    @ApiModelProperty("客户所属人员(销售人员)")
    private String saleIds;

    @ApiModelProperty("客户状态(0正常，1公海)")
    private Integer state;

    @ApiModelProperty("加入公海日期")
    private LocalDateTime inOpenDate;

}
